import Vue from 'vue'
import App from './App'

// import {
// 	navTo,
// 	getPlatform,
// 	showToast,
// 	showSuccess,
// 	showError
// } from './utils/app'
// 引入vuex
import store from './store'
// 引入uView-ui
import uView from 'uview-ui'

Vue.config.productionTip = false
Vue.use(uView)
App.mpType = 'app'

// 挂载全局函数
// Vue.prototype.$navTo = navTo
// Vue.prototype.$platform = getPlatform()
// Vue.prototype.$toast = showToast
// Vue.prototype.$success = showSuccess
// Vue.prototype.$error = showError

const app = new Vue({
    ...App,
	store
})
app.$mount()
